import request from '../../utils/request'

// 添加菜单
export const addOrderList = data => {
  return request({
    method: 'POST',
    url: '/menus',
    data
  })
}

// 获取菜单列表
// export const backedOrderList = () => {
//   return request({
//     method: 'GET',
//     url: '/menus'
//   })
// }
export const getMenusUser = () => {
  return request({
    method: 'GET',
    url: '/menus'
  })
}

// 修改菜单列表
export const alterOrderList = id => {
  return request({
    method: 'PUT',
    url: `/menus/${id}`
  })
}

// 删除菜单列表
export const deleteOrderList = id => {
  return request({
    method: 'DELETE',
    url: `/menus/${id}`
  })
}
